package com.jinke.api.modules.ums.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @projectName:
 * @title: UserChannelPageVO
 * @description: user_channel view vo
 * @see:
 * @author: hhp
 * @version: 1.0.0
 * @createTime: 2024/8/21 11:17
 */
@Data
@Accessors(chain = true)
public class UserChannelPageVO {
    @ApiModelProperty(value = "user_channel id")
    private Integer id;
    @ApiModelProperty(value = "用户名")
    private String userName;
    @ApiModelProperty(value = "渠道名称")
    private String channelName;
    @ApiModelProperty(value = "平台名称")
    private String channelPlatformName;
    @ApiModelProperty(value = "货运商名称")
    private String channelCarrierName;
    /*@ApiModelProperty(value = "服务名称")
    private String channelServiceName;*/
    @ApiModelProperty(value = "溢价比例")
    private BigDecimal rate;
    @ApiModelProperty(value = "溢价")
    private BigDecimal price;
    @ApiModelProperty(value = "是否最优")
    private Integer isBest;
    private String isBestDesc;
    @ApiModelProperty(value = "混比")
    private Integer platformRate;

    public String getIsBestDesc() {
        return this.isBest.equals(0) ? "最优" : "混比";
    }
}
